/****************************************************************************
 *
 * Copyright (C) 2003-2008 Los Alamos National Security, LLC
 *                         Packet Analytics Corporation
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License Version 2 as
 * published by the Free Software Foundation.  You may not use, modify or
 * distribute this program under any other version of the GNU General
 * Public License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 ****************************************************************************/
package nfse.gui.client;

import nfse.gui.record.FlexRecord;

import com.gwtext.client.core.*;
import com.gwtext.client.widgets.*;

import com.gwtext.client.widgets.form.*;
import com.gwtext.client.widgets.layout.*;
//import com.google.gwt.user.client.ui.HTML; 

public class TestDialog extends Window {

    public TestDialog(FlexRecord flex) {

        Panel windowPanel = new Panel();  
        FormPanel panel = new FormPanel();
        panel.add(new TextField("Test1","Test2"));
        
        windowPanel.add(panel);
        windowPanel.setShadow(true);  
        
        final Window window = this;  
        this.setTitle("Window Panel");  
        this.setIconCls("pac-icon");  
        this.setMaximizable(true);  
        this.setResizable(true);  
        this.setLayout(new FitLayout());  
        this.setWidth(200);  
        this.setAutoHeight(true);
        this.setModal(false);  
  
        this.addTool(new Tool(Tool.REFRESH, new Function() {  
            public void execute() {  
                MessageBox.alert("Refresh", "The Refresh tool was clicked");  
            }  
        }, "Refresh"));  
        this.addTool(new Tool(Tool.PIN, new Function() {  
            public void execute() {  
                MessageBox.alert("Pin", "The Pin tool was clicked");  
            }  
        }, "Pin"));  
        this.add(windowPanel);  
  
       
        
        

    }
    
    private static String getShortBogusMarkup() {  
        return "<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. " +  
                "Sed metus nibh, sodales a, porta at, vulputate eget, dui.  " +  
                "In pellentesque nisl non sem. Suspendisse nunc sem, pretium eget, " +  
                "cursus a, fringilla vel, urna.";  
    }  

}
